package com.itheima.blog.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.blog.admin.dto.CategoryQuery;
import com.itheima.blog.admin.dto.PageDTO;
import com.itheima.blog.admin.entity.TCategory;
import com.itheima.blog.admin.vo.CategoryVO;

import java.util.List;

import java.util.List;

/**
 * <p>
 * 博客分类表 服务类
 * </p>
 *
 * @author blog
 * @since 2023-07-11
 */
public interface ITCategoryService extends IService<TCategory> {

    List<String> contributeForLastYear();

    PageDTO<CategoryVO> findPage(CategoryQuery categoryQuery);

    void addCategory(TCategory categoryDTO);

    void updateCategory(TCategory categoryDTO);

    void deleteCategory(List<Long> id) throws Exception;

}
